<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>12-创建节点</title>
	</head>
	<body>
		<button>点击</button>
		<ul>
			<li>abc</li>
		</ul>
		<script type="text/javascript">
			var li = document.createElement('li');
			li.innerHTML = '<span>这是我新创建的...</span>';
			var i=0;
			var f = document.querySelector('ul');
			document.querySelector('button').onclick= function(){
				console.log('0000');
				//f.appendChild(li);
				f.insertBefore(li,f.children[0]);
			}
		</script>
	</body>
</html>
